package com.im.app.service.impl;


import com.im.app.mapper.ChatLogsMapper;
import com.im.app.model.ChatLogs;
import com.im.app.service.ChatLogsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


@Service
@Transactional(rollbackFor = Exception.class)
@Slf4j
public class ChatLogsServiceImpl implements ChatLogsService {

    @Resource
    private ChatLogsMapper chatLogsMapper;


    @Override
    public int insert(ChatLogs chatLogs) {
        return chatLogsMapper.insert(chatLogs);
    }
}

